<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./js/zepto.min.js">
    </script>
    <script src="./js/fastclick.js"></script>
    <style>
        .parent {
            height: 500px;
            width: 601px;
            position: absolute;
            background-color: blue;
        }
        .first {
            height: 300px;
            width: 300px;
            background-color: yellow;
            position: absolute;
            border-right: 1px solid purple;
            position: absolute;
        }
    </style>
</head>
<body>
    <div class="parent">      </div>
    <div class="first"></div>
    <script>
        var parent = document.querySelector(".parent");
        var first = document.querySelector(".first");

        // fastclick的使用
        if("addEventListener" in document) {
            document.addEventListener('DOMContentLoaded',function(){
                // 参数可以是任意dom元素 如果写document.body 说明会将document的所有元素都绑定fastclick.js
                FastClick.attach(document.body);
            },false);
        }
        first.addEventListener("click",function(){
            first.style.display = "none";
        });
        parent.addEventListener("click",function(){
            console.log("123");
        });
    </script>
</body>
</html>